//
//  NSString+CLPath.m
//  CLBasicsDemo
//
//  Created by 小草毋正 on 2017/9/12.
//  Copyright © 2017年 zbw. All rights reserved.
//

#import "NSString+CLPath.h"

@implementation NSString (CLPath)


/**
 @brief 获取沙盒路径
 @return 沙盒路径(NSString)
 */
+ (NSString *)documentPath {
    NSString *path = [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) lastObject];
    return path;
}


/**
 @brief 获取缓存文件夹路径
 @return 缓存文件夹路径(NSString)
 */
+ (NSString *)cachesPath {
    NSString *path = [NSSearchPathForDirectoriesInDomains(NSCachesDirectory, NSUserDomainMask, YES) lastObject];
    return path;
}


@end
